package com.qipay.notice.impl;


import com.qipay.baas.model.*;
import com.qipay.mapper.PeizhiMapper;
import com.qipay.notice.NoticeService;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;


@Service
public class NoticeServiceImpl implements NoticeService {

    @Autowired
    PeizhiMapper peizhiMapper;
    @Override
    public Peizhi getPeizhi() {
        Peizhi peizhi = peizhiMapper.selectByPrimaryKey();
        return peizhi;
    }
    public void save(Peizhi peizhi){
        peizhiMapper.updateByPrimaryKey(peizhi);
    }
}
